<!-- $Id: load_vtr.html 131 2008-08-21 23:07:03Z doug.hellmann $ -->
{% extends "admin/change_list.html" %}

{% if not is_popup %}{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../../">Home</a> &rsaquo; <a href="..">Cases</a></div>{% endblock %}{% endif %}

{% block content %}
{% if filename %}
<h2>Processed {{filename}}</h2>
{% endif %}
<h3>Summary</h3>
<table>
    <tr><th>New</th><td>{{new}}</td></tr>
    <tr><th>Duplicates</th><td>{{existing}}</td></tr>
    <tr><th>Errors</th><td>{{num_errors}}</td></tr>
</table>

{% if errors %}
<h3>Errors</h3>

<p><a href="http://code.google.com/p/athens-docket/wiki/VagueTextRecord">Vague Text Record Reference</a></p>

<table>
  <tr><th>Lines</th><th>Error</th><th>Input</th></tr>
{% for error in errors %}
    <tr><td>{{error.start}} - {{error.end}}</td><td>{{error.error}}</td>
<td><pre>
{{error.body}}
</pre></td></tr>
{% endfor %}
</table>
{% endif %}

<h3>Load another file</h3>
<p>
    <form action="." method="POST" enctype="multipart/form-data">
        <input type="file" name="vtr_data"/>
        <input type="submit" value="Upload VTR File">
    </form>
</p>


{% if output %}
<h3>Log</h3>
<pre>
{{ output|safe }}
</pre>
{% endif %}

  </div>
{% endblock %}
